package com.springbootdf.service.impl;

import com.springbootdf.entity.Item;
import com.springbootdf.mapper.ItemMapper;
import com.springbootdf.service.ItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wy
 * @since 2022-09-24
 */
@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements ItemService {

    @Autowired
    private ItemMapper itemMapper;
    @Override
    public List<Item> getItemsById(Integer id) {
        if (id != null){
            return itemMapper.getItemsById(id);
        }
        return null;
    }
}
